package com.weixin1.dao;

import com.weixin1.bean.CasePhoto;
import org.apache.commons.dbutils.QueryRunner;

import java.sql.Connection;
import java.sql.SQLException;

/**
 *
 */
public class CasePhotoDao {
    public int save(Connection conn, CasePhoto cp) throws SQLException {
        QueryRunner qr = new QueryRunner();
        return qr.update(conn,"insert into case_photo(case_id,p_id) values(?,?)",cp.getCaseId(),cp.getPId());
    }
}
